<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;
use think\model\concern\SoftDelete;
/**
 * @mixin \think\Model
 */
class Type extends Model
{
    //
    use SoftDelete;
    public function specs()
    {
        return $this->hasMany(Spec::class,'type_id','id');
    }
    public function values()
    {
        return $this->hasMany(SpecValue::class,'type_id','id');
    }
    public function attrs(){
        return $this->hasMany(Attribute::class,'type_id','id');
    }
}
